<template>
  <TabBar>
    <TabBarItem path="/home">
      <template v-slot:item-img>
        <img src="@/assets/img/tabbar/home.png" alt="home" />
      </template>
      <template v-slot:item-active-img>
        <img src="@/assets/img/tabbar/home_active.png" alt="home_active" />
      </template>
      <template v-slot:item-text>
        <div>首页</div>
      </template>
    </TabBarItem>
    <TabBarItem path="/category">
      <template v-slot:item-img>
        <img src="@/assets/img/tabbar/category.png" alt="category" />
      </template>
      <template v-slot:item-active-img>
        <img src="@/assets/img/tabbar/category_active.png" alt="category_active" />
      </template>
      <template v-slot:item-text>
        <div>分类</div>
      </template>
    </TabBarItem>
    <TabBarItem path="/cart">
      <template v-slot:item-img>
        <img src="@/assets/img/tabbar/cart.png" alt="cart" />
      </template>
      <template v-slot:item-active-img>
        <img src="@/assets/img/tabbar/cart_active.png" alt="cart_active" />
      </template>
      <template v-slot:item-text>
        <div>购物车</div>
      </template>
    </TabBarItem>
    <TabBarItem path="/profile">
      <template v-slot:item-img>
        <img src="@/assets/img/tabbar/profile.png" alt="profile" />
      </template>
      <template v-slot:item-active-img>
        <img src="@/assets/img/tabbar/profile_active.png" alt="profile_active" />
      </template>
      <template v-slot:item-text>
        <div>我的</div>
      </template>
    </TabBarItem>
  </TabBar>
</template>

<script>
import TabBar from "@/components/common/tabbar/TabBar";
import TabBarItem from "@/components/common/tabbar/TabBarItem";
export default {
  name: "maintabbar",
  components: {
    TabBar,
    TabBarItem
  }
};
</script>

<style>
</style>